package com.hgw.Demo03_AbstractFactory.Exercises5_8_7;

/**
 * Data time:2021/12/13 11:43
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public class Client {
    public static void main(String[] args) {
        Factory factory;
        Button button;
        Text text;
        factory = new UnixFactory();
        button = factory.createButton();
        text = factory.createText();

        System.out.println(button.getName());
        System.out.println(text.getName());
    }
}
